﻿<UserControl x:Class="RadoviciDemo.MacBar"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:RadoviciPanels="clr-namespace:Radovici.Ctrls.Panels;assembly=RadoviciCtrls">
    <UserControl.Resources>
        <ItemsPanelTemplate x:Key="MenuItemPanelTemplate">
            <RadoviciPanels:MacPanel/>
        </ItemsPanelTemplate>
        <DataTemplate x:Key="MenuItemDataTemplate">
            <Button>                
                <TextBlock Text="{Binding}"/>
            </Button>
        </DataTemplate>        
    </UserControl.Resources>
    <ContentControl>
        <ItemsControl ItemsSource="{Binding}" 
                      ItemsPanel="{StaticResource MenuItemPanelTemplate}" 
                      ItemTemplate="{StaticResource MenuItemDataTemplate}"/>
    </ContentControl>
</UserControl>
